import Vue from 'vue'
import App from './App.vue'

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.config.productionTip = false
import VueAMap from 'vue-amap';
Vue.use(ElementUI);
// 置地图key
VueAMap.initAMapApiLoader({
  key: process.env.VUE_APP_MAP_KEY,
  plugin: ['Autocomplete', 'PlaceSearch', 'Scale', 'OverView', 'ToolBar', 'MapType', 'PolyEditor', 'AMap.CircleEditor', 'Geolocation', 'Geocoder', 'MarkerClusterer', 'ElasticMarker', 'Heatmap'],
  uiVersion: '1.1', // ui库版本，不配置不加载,
  v: '2.0'
});

// 高德可视化地图引入方法
import AMapLoader from '@amap/amap-jsapi-loader';
Vue.use(AMapLoader);


new Vue({
  render: h => h(App),
}).$mount('#app')
